package com.likl.service.impl;

import com.likl.service.MessageService;
import com.likl.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ClassName:springboot_study
 * Description:
 *
 * @Create: 2024/7/17 9:40
 * @author: likl
 * @e-mail: likl1102@foxmail.com
 * @QQ: 2514927731
 */
@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private MessageService messageService;

    @Override
    public void order(String id) {
        System.out.println("准备处理业务");
        messageService.sendMessage(id);

        System.out.println();
    }
}
